﻿@model IEnumerable<CS795.TravelAgency.Models.CustomerViewModel>

@{
    ViewBag.Title = "Customers";
}

<div>
    <div class="panel-heading">
        <strong>Customers</strong>
    </div>
    <table class="table table-bordered table-condensed table-hover table-striped">
        <thead>
            <tr>
                <th>Customer Name</th>
                <th>Email Address</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var m in Model)
            {
                @Html.Partial("_CustomerPartial", m)
            }
        </tbody>
    </table>
    @Html.ActionLink("Create New Customer", "Create", "Account", routeValues: new { returnUrl = @Url.Action("Customers", "Trip") }, htmlAttributes: new { @class = "btn btn-default" })
</div>